package com.content.scaffold.model.mp;

import com.content.scaffold.model.dto.login.UserInfo;
import com.content.scaffold.model.entity.SysUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author xiaojl
 */
@Mapper
public interface UserConvert {
    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    /**
     * 转换vo
     * @param user 用户信息
     * @return 用户信息
     */
    UserInfo map(SysUser user);
}
